package org.example.domain.activity_manage.repository;

import org.example.domain.activity_manage.model.entity.ActivityEntity;

import java.util.List;

/**
 * @author lxc18
 * @date 2025/3/17 19:58
 * @description IActivityRepo
 */
public interface IActivityRepo {
    boolean createActivity(ActivityEntity activityEntity);

    boolean updateActivity(ActivityEntity activityEntity);

    boolean deleteActivity(Long activityId);


    //    支持模糊查询（根据名字）
    List<ActivityEntity> queryActivityByName(String activityName);

    //根据id查询活动
    ActivityEntity queryActivityById(Long activityId);

    //    支持分页查询
    List<ActivityEntity> queryActivityByPage(int pageNum, int pageSize);
}
